<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>网站后台管理系统</title>
    <link rel="stylesheet" href="__ADMIN__/layui/css/layui.css">
    <link rel="stylesheet" href="__ADMIN__/css/base.css">
    <link rel="stylesheet" href="__ADMIN__/css/fonts.css">
    {block name="css"}{/block}
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header layui-bg-green">
        <div class="layui-logo">后台管理系统</div>
        <ul class="layui-nav layui-layout-left">
            {foreach name="navbar" item="v"}
            <li class="layui-nav-item {if isset($breadcrumb['0']) and $breadcrumb['0'] eq $v.name}layui-this{/if}">
                <a href="{$Request.root.true}/{if empty($v.url)}{$v.children.0.url}{else/}{$v.url}{/if}"><i class="{$v.icon}"></i> {$v.name}</a>
            </li>
            {/foreach}
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item"><a href="/" target="_blank"><i class="fa fa-home"></i> 网站首页</a></li>
            <li class="layui-nav-item"><a href="{:url('admin/index/clear')}" class="ajax-action"><i class="fa fa-trash"></i> 清除缓存</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;"><i class="fa fa-user"></i> {:session('admin_auth.username')}</a>
                <dl class="layui-nav-child">
                    <dd><a href="{:url('admin/index/editPassword')}">修改密码</a></dd>
                    <dd><a href="{:url('admin/index/logout')}">退出登录</a></dd>
                </dl>
            </li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree">
                <li class="layui-nav-item"><a href="{:url('admin/index/index')}"><i class="fa fa-home fa-fw"></i> 控制台</a></li>
                {foreach name="navbar" item="n0"}
                {if condition="isset($n0['children']) and isset($breadcrumb['0']) and $breadcrumb['0'] eq $n0.name"}
                {foreach name="n0['children']" item="n1"}
                <li class="layui-nav-item {if isset($breadcrumb['1']) and $breadcrumb['1'] eq $n1.name}{if condition="isset($n1.children)"}layui-nav-itemed{else/}layui-this{/if}{/if}">
                    <a href="{if condition="isset($n1['children'])"}javascript:;{else/}{$Request.root.true}/{$n1.url}{/if}"><i class="{$n1.icon} fa-fw"></i> {$n1.name}</a>
                    {if condition="isset($n1['children'])"}
                    <dl class="layui-nav-child">
                        {foreach name="n1['children']" item="n2"}
                        <dd{if isset($breadcrumb['2']) and $breadcrumb['2'] eq $n2.name} class="layui-this"{/if}><a href="{$Request.root.true}/{$n2.url}">{$n2.name}</a></dd>
                        {/foreach}
                    </dl>
                    {/if}
                </li>
                {/foreach}
                {/if}
                {/foreach}
            </ul>
        </div>
    </div>
    <div class="layui-breadcrumb">
        {if condition="isset($breadcrumb)"}
        {foreach name="breadcrumb" item="v"}
        <a><cite>{$v}</cite></a>
        {/foreach}
        {/if}
    </div>
    <div class="layui-body">
        {block name="body"}{/block}
    </div>
</div>
<script src="__ADMIN__/js/jquery-2.1.4.min.js"></script>
<script src="__ADMIN__/layui/layui.all.js"></script>
<script src="__ADMIN__/js/layui.base.js"></script>
{block name="js"}{/block}
</body>
</html>